class RadioGroup {
    props = { value: String, defaultValue: String, onChange: Function };

    state = {
        value: this.props.value || this.props.defaultValue,
    };

    constructor() {}

    handleChange(value) {
        this.state.value = value;
        this.props.onChange(value);
    }
}
